// 搜索的结果
import Axios from '../axios/index'


// 获得验证码
export const Getverificationcode = function (email) {
  return Axios({
    url: '/customer/send',
    method: 'GET',
    params: {
      email
    }
  })
}

// 登录
export const Signin = function (params) {
  return Axios({
    url: '/customer/login',
    method: 'post',
    data: params
  })
}

// 创建账号
export const Createanaccount = function (params) {
  return Axios({
    url: '/customer/create',
    method: 'post',
    data: params
  })
}

// 验证邮箱是否已经注册
export const EffectivenessEmail = function(params){
  return Axios({
    url: 'customer/checkEmail',
    method: 'get',
    params: params
  })
}

// 修改密码 
export const changePassword = function (params) {
  return Axios({
    url: 'customer/fixPassWord',
    method: 'post',
    data: params
  })
}

